package com.xn.app.muying.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/11/1.
 */
public class DoctorGsonBean {


    /**
     * name : 产科
     * logo : null
     * type : 2
     * parentCompanyId : 1
     * subCompanies : [{"name":"产科第一病区","logo":null,"type":3,"parentCompanyId":3,"subCompanies":[],"id":8},{"name":"产科第二病区","logo":null,"type":3,"parentCompanyId":3,"subCompanies":[],"id":9},{"name":"产科第三病区","logo":null,"type":3,"parentCompanyId":3,"subCompanies":[],"id":10},{"name":"生殖学科","logo":null,"type":3,"parentCompanyId":3,"subCompanies":[],"id":12},{"name":"妇产检查治疗科","logo":null,"type":3,"parentCompanyId":3,"subCompanies":[],"id":14}]
     * id : 3
     */

    private String name;
    private Object logo;
    private int type;
    private int parentCompanyId;
    private int id;
    /**
     * name : 产科第一病区
     * logo : null
     * type : 3
     * parentCompanyId : 3
     * subCompanies : []
     * id : 8
     */

    private ArrayList<SubCompaniesBean> subCompanies;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getLogo() {
        return logo;
    }

    public void setLogo(Object logo) {
        this.logo = logo;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getParentCompanyId() {
        return parentCompanyId;
    }

    public void setParentCompanyId(int parentCompanyId) {
        this.parentCompanyId = parentCompanyId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ArrayList<SubCompaniesBean> getSubCompanies() {
        return subCompanies;
    }

    public void setSubCompanies(ArrayList<SubCompaniesBean> subCompanies) {
        this.subCompanies = subCompanies;
    }

    public static class SubCompaniesBean {
        private String name;
        private Object logo;
        private int type;
        private int parentCompanyId;
        private int id;
        private List<SubCompaniesBean> subCompanies;

        @Override
        public String toString() {
            return "SubCompaniesBean{" +
                    "name='" + name + '\'' +
                    ", logo=" + logo +
                    ", type=" + type +
                    ", parentCompanyId=" + parentCompanyId +
                    ", id=" + id +
                    ", subCompanies=" + subCompanies +
                    '}';
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Object getLogo() {
            return logo;
        }

        public void setLogo(Object logo) {
            this.logo = logo;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getParentCompanyId() {
            return parentCompanyId;
        }

        public void setParentCompanyId(int parentCompanyId) {
            this.parentCompanyId = parentCompanyId;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public List<SubCompaniesBean> getSubCompanies() {
            return subCompanies;
        }

        public void setSubCompanies(List<SubCompaniesBean> subCompanies) {
            this.subCompanies = subCompanies;
        }
    }

    @Override
    public String toString() {
        return "Bean{" +
                "name='" + name + '\'' +
                ", logo=" + logo +
                ", type=" + type +
                ", parentCompanyId=" + parentCompanyId +
                ", id=" + id +
                ", subCompanies=" + subCompanies +
                '}';
    }
}
